#ifndef __FPALGORITHM_STRUCT_H__
#define __FPALGORITHM_STRUCT_H__
#include<g_type.h>

typedef struct
{
    uint8_t clk_port;
    uint8_t mosi_port;
    uint8_t miso_port;
    uint8_t cs_port;
    uint8_t rst_port;
    uint8_t irq_port;
    uint16_t clk_pin;
    uint16_t mosi_pin;
    uint16_t miso_pin;
    uint16_t cs_pin;
    uint16_t rst_pin;
    uint16_t irq_pin;
    uint8_t cs_reverse;//sensor CS PIN level reverse(0为不反向,低有效 1为反向,高有效)
    uint8_t rst_reverse;//sensor RST PIN level reverse(0为不反向,低有效 1为反向,高有效)
    uint8_t collect_num;//录入指纹采集次数配置
    uint8_t dynamic_update;/*bit0:
                                  0:关闭自学习功能
                                  1:开启自学习功能
                             bit1:(bit0为1时有效)
                                  0:指纹认证成功,自学习完成后自动更新模板
                                  1:由用户自行调用FP_UpdateTemplate更新自学习模板*/
} G_FP_IOTypeDef;

#endif
